﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Web;

namespace MochCraigslistDay19.Models
{
    public class SmartPhoneVM : ProductVM
    {
        public string Size { get; set; }
        public string OperatingSystem { get; set; }
    }

    public class PeanutButterVM : ProductVM
    {
        public string Brand { get; set; }
        public bool IsCreamy { get; set; }
    }

    public class ProductVM
    {
        public ProductVM(int price, string title, string description)
        { 
            Price = price;
            Title = title;
            Description = description;
        }

        public ProductVM()
        {

        }

        public int Price { get; set; }

        [DisplayName("Product")]
        public string Title { get; set; }

        public string Description { get; set; }

    }
}